//
//  InputViewController.h
//

#import <UIKit/UIKit.h>
#import "CustomViewController.h"

typedef enum InputViewType {

    TextViewType,
    TextFieldType

}InputViewType;

typedef void (^InputEnd)(NSString *string);

@interface InputViewController : CustomViewController

@property (nonatomic, assign) NSInteger miniNumOfString;

@property (nonatomic, assign) NSInteger maxNumOfString;

@property (nonatomic, copy) NSString * placeholder;

@property (nonatomic, copy) NSString * content;

@property (nonatomic, copy) NSString *  regExFilter;//只能输入的正则表达式

@property (nonatomic, copy) NSString * errorMessage;//错误提示；

@property (nonatomic) UIKeyboardType keyboardType; // 键盘类型

@property (nonatomic) NSString * bottomName;


- (instancetype)initWithTilte:(NSString *)tilte withInputType:(InputViewType)type complete:(InputEnd)complete;

- (void)show:(UIViewController *)presentViewCtr;

@end
